<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>{:SEO('home','title')}</title>
<meta name="keywords" content="{:SEO('home','keywords')}">
<meta name="description" content="{:SEO('home','description')}">
<link href="__ROOT__/{:C('YTATA_TPL_DIR')}/public/css/index.css" rel="stylesheet" type="text/css">
<include file="public:header" />
<div class="index1">
  <div class="il">
  
  
  	<div class="tbox">
  	  <div class="tit">最新动态</div>
	  
	  <ytata:track listname="track"  page="0" num="3"/>
	  <volist name="track.list" id="li">
		  <div class="dli link_gray6">
			<div class="avatar"><a href="{$li.user.user_url}" target="_blank"><img src="{$li.user.avatar}"></a></div>
			<div class="info"><a href="{$li.user.user_url}" target="_blank">{$li.user.nickname}</a>&nbsp;{$li.type_str}<br /><span class="time">{$li.addtime_str}</span></div>
			<div class="clear"></div>
		  </div>
	  </volist>
	  <empty name="track.list">
<div class="infoempty"> 暂时木有内容呀～～</div>
</empty>
	   
	  
	  
  	</div>
	
	<div class="abox">
  	  <div class="tit">最新分享<a href="{:RU('article/lists')}" class="more" target="_blank">更多</a></div>
	   <ytata:article listname="new"  page="0" num="1" sort="exc" />
	   <volist name="new.list" id="li">	
	  <div class="imglist"><a href="{$li.url}" target="_blank"><img src="{$li.img}" border="0"></a></div>	
	  </volist>  
	  <div class="alibox link_gray6">
	  <ytata:article listname="new"  page="0" num="6" />
		<volist name="new.list" id="li">	
	    <div class="ali">· <a href="{$li.url}" target="_blank">{$li.title}</a></div>
		</volist>
		<empty name="new.list">
<div class="infoempty"> 暂时木有内容呀～～</div>
</empty>
		
	  </div>
	</div>
	
	
  </div>
  <div class="ic">
  
  	<div class="topso">
	  <div class="sotit">您的问题</div>
	  
	  <div class="sobox">
	  	 <form action="{:RU('so/view')}" method="get" id="J_so_from">
		 <input type="text" class="key" name="key" maxlength="10" placeholder="请输入关键词">
		 <input name="" type="submit" value="搜索" class="sobtn">
		 {:build_url_param('so/view')}
		 </form>
			<script type="text/javascript">
				$("#J_so_from").submit( function () {
				key=$("#J_so_from input[name=key]").val();
				  if (key==''){
					disapperTooltip("remind","请填写关键字");
					 return false;
				  }else{
				  return true;	 
				  }
				});
			</script>
	  </div>
	  <div class="clear"></div>
  	</div>
	
    <div class="qli">
	  <div class="tit">等待回答<a href="{:RU('question/lists')}" class="more" target="_blank">更多</a></div>
	  
	  
	  <ytata:question listname="question" type="1" page="0" num="3"/> 
<volist name="question.list" id="li">
	  <div class="qllist">
	    <div class="avatar"><img src="{$li.adduser.avatar}"></div>
		<div class="info">
		  <div class="qtit link_blue">
		  <if condition="$li.reward gt 0 "><span class="reward">{$li.reward}</span></if>
		  <a href="{$li.url}" target="_blank">
		  <empty name="li.title">
		  {$li.describe_cut}
		  <else /> 
			{$li.title}
			</empty> 
		  </a>
		  </div>
		  <div class="qtxt link_gray6">
		  	<a class="tcat" href="{$li.cat.qurl}">{$li.cat.c_title}</a>
			<if condition="$li.answeruid gt 0 ">
							 <a href="{$li.replyuser.user_url}"  target="_blank">{$li.replyuser.nickname}</a> <span> 回复于 {$li.answertimestr}</span>
							 <else />
							  <a href="{$li.adduser.user_url}" target="_blank">{$li.adduser.nickname}</a><span> 发布于 {$li.addtimestr}</span>
			  </if>
&nbsp;/&nbsp;{$li.answercount}个回复&nbsp;/&nbsp;{$li.click}次浏览
			 <notempty name="li.tags">
				 
				 
					<volist name="li.tags" id="tagsli">
							 <a   href="{$tagsli.tagurl}" target="_blank" class="tag">{$tagsli.tag}</a>
				  </volist> 
					 
			 
		    </notempty> 
		  </div>
		</div>
		<div class="clear"></div>
		
	    <div class="time">{$li.addtimestr}</div>
	  </div>
 </volist>
<empty name="question.list">
<div class="infoempty"> 暂时木有内容呀～～</div>
</empty>
	  
	  
	  
	  
	  
	  
    </div>
	
	 <div class="qli">
	  <div class="tit">最新解决问题<a href="{:RU('question/lists')}" class="more" target="_blank">更多</a></div>
	  
	 <ytata:question listname="question" type="3" page="0" num="3"/> 
<volist name="question.list" id="li">
	  <div class="qllist">
	    <div class="avatar"><img src="{$li.adduser.avatar}"></div>
		<div class="info">
		  <div class="qtit link_blue">
		  <if condition="$li.reward gt 0 "><span class="reward">{$li.reward}</span></if>
		  <a href="{$li.url}" target="_blank">
		  <empty name="li.title">
		  {$li.describe_cut}
		  <else /> 
			{$li.title}
			</empty> 
		  </a>
		  </div>
		  <div class="qtxt link_gray6">
		  	<a class="tcat" href="{$li.cat.qurl}">{$li.cat.c_title}</a>
				<if condition="$li.answeruid gt 0 ">
					<a href="{$li.replyuser.user_url}"  target="_blank">{$li.replyuser.nickname}</a> <span> 回复于 {$li.answertimestr}</span>
					<else />
					<a href="{$li.adduser.user_url}" target="_blank">{$li.adduser.nickname}</a><span> 发布于 {$li.addtimestr}</span>
				</if>
&nbsp;/&nbsp;{$li.answercount}个回复&nbsp;/&nbsp;{$li.click}次浏览
			 <notempty name="li.tags">
			 
				 
					<volist name="li.tags" id="tagsli">
							 <a   href="{$tagsli.tagurl}" target="_blank" class="tag">{$tagsli.tag}</a>
				  </volist> 
					 
			 
		    </notempty> 
		  </div>
		</div>
		<div class="clear"></div>
		
	    <div class="time">{$li.addtimestr}</div>
	  </div>
 </volist>
<empty name="question.list">
<div class="infoempty"> 暂时木有内容呀～～</div>
</empty>
	  
	  
    </div>
	
	
	
  </div>
  <div class="ir">
  	<div class="btns">
	<if condition="(C('YTATA_SMS_OPEN') eq '1') OR ($Think.session.ytata.uid NEQ '')">
		<a class="btn" href="{:RU('question/add')}">我要提问</a>
		<a class="btn share" href="{:RU('article/add')}">发表文章</a>
		<a class="btn bbs" href="{:RU('bbs/add')}">发表主题</a>
	<else />
		<a class="btn J_user_login" href="javascript:void(0);">我要提问</a>
		<a class="btn share J_user_login" href="javascript:void(0);">发表文章</a>
		<a class="btn bbs J_user_login" href="javascript:void(0);">发表主题</a>
	</if>
	</div>
	
	<div class="rec">
          <div class="tit">网站公告<a href="{:RU('notice/lists')}" class="more"  target="_blank">更多</a></div>
			<ytata:notice listname="notice"  page="0" num="5" />
			<volist name="notice.list" id="li">
				<div class="reli link_gray6"><a href="{$li.url}" target="_blank">· {$li.title}</a></div>
			</volist>
			<empty name="notice.list">
<div class="infoempty"> 暂时木有内容呀～～</div>
</empty>

	</div>
	
	
	<div class="tagbox">
          <div class="tit">热议话题<a href="{:RU('tag/lists')}" class="more" target="_blank">更多</a></div>
     
          			  <ytata:tag listname="tags"  page="0" sort="hot" num="40"/>
					 <volist name="tags.list" id="tli">
          			 <a class="tag" href="{$tli.url}" target="_blank">{$tli.tag}<span>({$tli.count_question})</span></a>
					 </volist>
                      <div class="clear"></div>
    </div>
		
			
	
	
  </div>
  <div class="clear"></div>
</div>
	
	
	<div class="rankbox">
		<div class="tit">排行榜<a href="{:RU('Ranking/index')}" class="more" target="_blank">更多</a></div>
		
		<!--助人之星排行榜 -->
		<div class="rli">
			
			<!--遮罩开始 排行最多7个 -->
			<div class="ranklist link_white">
				<div class="th">助人之星排行榜</div>
				
				<div class="nlist">
					<div class="td1">排名</div>
					<div class="td2">昵称</div>
					<div class="td3">指数</div>
					<div class="clear"></div>
				</div>
				<ytata:rank listname="rank" type="answer" limit="7" time="week"/>
				<volist name="rank" id="_rank">
				<div class="nlist">
					<div class="td1"><div class="n n{$key+1}">{$key+1}</div></div>
					<div class="td2"><a href="{$_rank.user.user_url}">{$_rank.user.nickname}</a></div>
					<div class="td3">+{$_rank.num}</div>
					<div class="clear"></div>
				</div>
				</volist>
			
			</div>
			<!--遮罩结束 -->
			
			<div class="time">本周</div>
			<div class="titname">助人之星</div>
			<div class="titexp">在平台持续助人为乐<br>我伟大</div>
      <notempty name="rank.0.user.avatar">
        <div class="avatar"><img src="{$rank.0.user.avatar}"></div>
			<else />
        <div class="avatar"><img src="__ROOT__/{:C('YTATA_IMG_AVATAR_DIR')}avatar.jpg"></div>
      </notempty>
			<div class="uname">{$rank.0.user.nickname|default='[空缺]'}</div>
			<div class="usercount">助人指数：{$rank.0.num|default='0'}</div>
			<div class="x1"></div><div class="x2"></div>
		</div>
		
		
		<!--好评之星排行榜 -->
		<div class="rli c1">
			
			<!--遮罩开始 排行最多7个 -->
			<div class="ranklist link_white">
				<div class="th">好评之星排行榜</div>
				
				<div class="nlist">
					<div class="td1">排名</div>
					<div class="td2">昵称</div>
					<div class="td3">指数</div>
					<div class="clear"></div>
				</div>
				<ytata:rank listname="rank" type="praise" limit="7" time="week" />
				<volist name="rank" id="_rank">
				<div class="nlist">
					<div class="td1"><div class="n n{$key+1}">{$key+1}</div></div>
					<div class="td2"><a href="{$_rank.user.user_url}">{$_rank.user.nickname}</a></div>
					<div class="td3">+{$_rank.num}</div>
					<div class="clear"></div>
				</div>
				</volist>
			
			</div>
			<!--遮罩结束 -->
			
			<div class="time">本周</div>
			<div class="titname">好评之星</div>
			<div class="titexp">在平台答疑解惑收获好评<br>我开心</div>
			<notempty name="rank.0.user.avatar">
				<div class="avatar"><img src="{$rank.0.user.avatar}"></div>
				<else />
				<div class="avatar"><img src="__ROOT__/{:C('YTATA_IMG_AVATAR_DIR')}avatar.jpg"></div>
			</notempty>
			<div class="uname">{$rank.0.user.nickname|default='[空缺]'}</div>
			<div class="usercount">好评指数：{$rank.0.num|default='0'}</div>
			<div class="x1"></div><div class="x2"></div>
		</div>
		
		<!--知识达人排行榜 -->
		<div class="rli c2">
			
			<!--遮罩开始 排行最多7个 -->
			<div class="ranklist link_white">
				<div class="th">知识达人排行榜</div>
				
				<div class="nlist">
					<div class="td1">排名</div>
					<div class="td2">昵称</div>
					<div class="td3">指数</div>
					<div class="clear"></div>
				</div>
				<ytata:rank listname="rank" type="optimal" limit="7" time="week"/>
				<volist name="rank" id="_rank">
				<div class="nlist">
					<div class="td1"><div class="n n{$key+1}">{$key+1}</div></div>
					<div class="td2"><a href="{$_rank.user.user_url}">{$_rank.user.nickname}</a></div>
					<div class="td3">+{$_rank.num}</div>
					<div class="clear"></div>
				</div>
				</volist>
			
			</div>
			<!--遮罩结束 -->
			
			<div class="time">本周</div>
			<div class="titname">知识达人</div>
			<div class="titexp">在平台答疑解惑被采纳<br>我快乐</div>
			<notempty name="rank.0.user.avatar">
				<div class="avatar"><img src="{$rank.0.user.avatar}"></div>
				<else />
				<div class="avatar"><img src="__ROOT__/{:C('YTATA_IMG_AVATAR_DIR')}avatar.jpg"></div>
			</notempty>
			<div class="uname">{$rank.0.user.nickname|default='[空缺]'}</div>
			<div class="usercount">达人指数：{$rank.0.num|default='0'}</div>
			<div class="x1"></div><div class="x2"></div>
		</div>
		
		<!--财富值排行榜 -->
		<div class="rli c3 last">
			
			<!--遮罩开始 排行最多7个 -->
			<div class="ranklist link_white">
				<div class="th">财富值排行榜</div>
				
				<div class="nlist">
					<div class="td1">排名</div>
					<div class="td2">昵称</div>
					<div class="td3">指数</div>
					<div class="clear"></div>
				</div>
				<ytata:rank listname="rank" type="gold" limit="7" time="week"/>
				<volist name="rank" id="_rank">
					<div class="nlist">
						<div class="td1"><div class="n n{$key+1}">{$key+1}</div></div>
						<div class="td2"><a href="{$_rank.user.user_url}">{$_rank.user.nickname}</a></div>
						<div class="td3">+{$_rank.num}</div>
						<div class="clear"></div>
					</div>
				</volist>
			
			</div>
			<!--遮罩结束 -->
			
			<div class="time">本周</div>
			<div class="titname">财富榜</div>
			<div class="titexp">在平台答疑解惑获取{:C('YTATA_GOLD_BYNAME',null,'金币')}<br>我骄傲</div>
			<notempty name="rank.0.user.avatar">
				<div class="avatar"><img src="{$rank.0.user.avatar}"></div>
				<else />
				<div class="avatar"><img src="__ROOT__/{:C('YTATA_IMG_AVATAR_DIR')}avatar.jpg"></div>
			</notempty>
			<div class="uname">{$rank.0.user.nickname|default='[空缺]'}</div>
			<div class="usercount">财富指数：{$rank.0.num|default='0'}</div>
			<div class="x1"></div><div class="x2"></div>
		</div>
		
		<div class="clear"></div>
	</div>
	<script type="text/javascript">
      $(document).ready(function()
      {
          $(".rankbox .rli").mouseenter(function(){
              $(this).find(".ranklist").show();
          });
          $(".rankbox .ranklist").mouseleave(function(){
              $(this).hide();
          });
      });
	</script>
<div class="links link_gray6">
	<strong>友情链接：</strong>
	<ytata:links listname="link"  page="0"  num="100"/>
	<volist name="link.list" id="tli">
  <a href="{$tli.link_url}" target="_blank">{$tli.link_name}</a>
   </volist>
  
  </div>
<include file="public:footer" />
</body>

</html>
